thanks. I think i have the process working now. I decided to go away from dynamic downloads and manifest files because it just caused to much overheads for the amount of files I needed to include in the manifests (hundreds of thousands).
It still would be nice to be able to have an API/cgi sitting behind the besrelay (like the Relay Diagnostics page does on :52311/rd ) that would allow for customization,