connect and listen as sub parameters