replace log to lwlog
fix file header
update configs
replace pkey to token
remove pkey function