added AMD support