implemented simple message receiving