moved errorhandler to production dependencies