adds :max-results option to history