trying to get the directive working