option to run locally or remotely (cluster)