figuring out integration w/ script