return strings instead of dumping them immediately