added preconnect and exit options