use errorhandler only in development