refactor
use as twitter bot