page 170 + improved URL checking