remove directive dependency from compile/compile