add ack() method, change return type of consume_message