moved common funcs in Common.hs; almost completed prxoy CONNECT