engine errors fixed ready for gui