implemented twitter in main processing code