modified key mapping and auto save