refactor jsonhandler + errorhandler
implement status_handler
implement status check
fix