added twitter api functionality