replaced console info with logs