cleaned up some printmode logic