fixed checkURL with baseURL and stuff