reworked twitter api and ap