added keyId for per id assignment
added keyId support; updated version