parse machine as a url then use path.join?