add hardware acceleration hack