added hook to the print address function