added a type field back to the twitter script