Refactor: support amd and change some event names