fix issue #3 and add support for new offsetting syntax
remove unused import