rendererr: change API the way code (generator) register itself and dependencies