add dumpline method