pretty print inspired from reclass