WIP generate connection scripts