configure route handler