* adjust the logic of locke use.