working cluster parser, sans gain modification