added app.isInitialized to main for mobile tombstoning