add dump and trim