wrap generate in logs