be able to specify dependency during registration