improve twitter functionality