add options to connect method

Let's pass options. First goal: dont connect to http api if not required