added support for visit tracking. Visit query still not available