set proto of session when loading mks from storage