added get_post_message function