added session/new path to respond to get or post