use uri instead of absolute path