adding automatic generation of alignment stats