add dir-part and base-part operators