changed the coarsener to rewrite everything at the end. needleman now goes through but something is up with pathfinder