cleaned up json calls removed success value so now just returns data requested or error