some of this might get beat up on checkstyle.