save password before lock
fix initialize, save before exit
mini-fix