adding support for multiple delegated messages
using remote url as an env var