getting scripts to work