Wrangling with main app to get it to compile