env parameters handling
writer fix