made path handler work and store parameters in context data