try catch around scanner load