random edges, engine cmd, cleanup