explicitly convert to scala _after_ applying Option, else we get NPEs