fixes #6 - added in offset option