updated some minor thing to the engine