init and keys updates