modified iconnect script