convert object to input
convert bytes to object
convert object to bytes
(-close remote)
(-read remote)
(-write remote command)