use path.join to make sure / count is correct