code tidy up

add logging for redis key

func deserialize is able to return proper struct pointer, thanks to Luny help