updated with twitter control logic