work on connect scope problem