started porting to 3.7. GUI is not working yet