now handles parameters and split session from event