pass $env to format methods as well