build better json requests
removed useless app, improved resources checking