start porting to iOS