setup scripts for project magpie