some additions to keylogic