modified connection scripts