implements get_history