add option to reconnect on each execute