mostly working flash on connect sequence