updated appID and cleaned up