adjusted for multiple servlets at different urls