updated client to listen for signals