better offset write support