formatted and added connection and socket timeout