pretify input/output