add method for checking for unsent messages