fixed some major/minor bugs in robo's Engine code