running cat in bg does not cause error, must debug