trim unnecessary rest calls and add printing method