fixed path.resolve