print more debug log, add env