smaller functions when dumping; input and ok natano@