add options to connect method