fixed issues of keyboard. add migration manager.