some gpu cleanup work