cleanup, mod to angsd script