added framebuffer error log
added different offset modes