minor changes in the twitter constructor