Small change to extension API. delete unnecessary things.