implemented new engine.Serve() method