update core directive