add secret and existence check