added AMD loading support