add change app rest entrypoint. Add simple error handling