added beta param
added hacky 2nd script