more changes in insert precipitates phases.  about to try to merge this branch with Megna's original PW branch