fix cookie secret
fix some background load code