importing gpu code
minor tweaks, add code_supplied