main app working