[IMP] remove redundant variable, revert grepping for errors to standard