bugs in the scanner around url construction