use path instead of url