parse_message changed for more realistic functionality