basic flow of lock complete