add offsets fix #1