updated connect script to new init files