fixing conditions on path exports