add interface for receive_msg
add receive_msg files