fixed some bugs, added some path exports