modified for installation and key setup