changed scripts to support local deployment