add error catching to pipeline commands