update to check secure connections