added key manager class