updated error messages, simplified pipe events somewhat