first very slow yet working version
make registryURL configurable