prune dead code, fix compiling printer