set unique resource before initConnection()