take log level from env variable
update changes
commented some debug statements