added basic asserts in engine init