added tweet creation messages and removed functions from scope