replace locked files