twilio stuff and some querying