make script runnable locally