added secret_key_base and various other changes