fixed path.join errors