refactor extension processing to happen after onConnect()