removed duplicated methods
added dump_one utility method