replace path.resolve with path.join