cleaned up visitor json calls and error msgs