fully working json output on local machine only