check comment in engine class for TODO