removed commandreceive from main