handle csv extract better