lock config