add possibility to use custom registry