added post and receive message loops