script to run locally