some gpu fixes