location handler is now injected