changes json classes and endpoint