refactor tweetInterval parser, abstract into util