added new config parameter 'offset' to control framebuffer hack