added helper functions to adpat offsets (so offset-testing also works on windows)