keytype handler refined