changed mongo connect and twitter api to modules