added env block support