simple scripts to calculate 2-param models