send-message using loop, fixes #3