get gains from gains dir