add path info to before handler