update lock and readmi