more work on the visit manager