add random secret key for development mode
small bug fix