quick printer refactor