use 2 separate checks for config api