added installKey() function