an edit version of utils from twitter gem