making it compatible for amd and global imports