before handler and custom not found handling
method name changed to fit rest of api