json stringify responses
some refacto + handling not found records