renamed .use to .transform
added error handlers for input streams