bring back before/after
fix default with failures
fix RubyMine and calculate correct total