adding back in some twitter code