changes from BC-PML collocation, used for running on PML cluster