lock migration framework ready. need to use it in 2 functions.