modification in engine process, improving API debugging