add subtype for dirpath