common utilities for RapidSMS