write out csv and remove dependency on unm-hip