fixed amd support + linted code