fixes for path, exports not self in parser, not requiring optional dependencies until needed