updated script to store server pw