implement some function for wrapping twitter API