small changes to engine