started APDM queries, and some logic to detect SBs config.