split out interface printing functions to separate module