also needed to encode for text sent to communicate