restructured. now all compiles fine with xamarin