modify connector scripts to save memory