added the directive registration