prepare interval parsing

see issue #136