updated security for keys