added domain handler cloud code