add offset

@nicolashery @cheddar @kentquirk