fixed path bug if ran in other dir