got directives to work with inheritence