remove commented out debug stuff
match connection in lower case