use loadbyurl instead of loadbyid