added basic rest visit interface, stupid but functional