rename socket to controller