refactored a bit, added debriefing