first try at directive