temp
certainly better than before. main script runs and a good deal of tests pass.