allow one to hook into the parameter handling on enter and leave