tweet error checking in place