fix a bug in jsonController
add salt in config
remove time functions from util