move out twitter client code