changed key to masterpwd to avoid confusion