trying to get printing to work with register/mode