implement offset, refs #28