implemented config and secret keys