fix AMD support
check for callback
check for callback