moved from puts to logs