implement some functions for wrapping twiiter API