fixed pipe direction, added test sample command