tweetbox code cleanup