batch scripts just for phi