change implementation of key initialization
update version