working version of visitor API