implement registry injection