accept all arguments when adding custom middleware