added script to calc bz parameters