fix async route handler