output passes to separate folders

Well, all options I need are exposed to maxscript, but works totally heraticaly. sometimes works, sometimes not, sometimes do the opposite … nothing robust
-- EXR interface settings
fopenexr.setLayerOutputFormat 0 1 -- 0:Full 1:Half 2:Integer
fopenexr.setLayerOutputType 0 1 -- 0:RGBA 1:RGB 2:Mono
fopenexr.SetCompression 2 -- 0:None 1:RLE 2:ZLIB(per scanline) 3:ZLIB(block of 16) 4:PIZ
fopenexr.setSaveScanline true -- false:tiles true:scanlines
fopenexr.setSaveRegion false -- false:full image true:region
-- PNG interface settings
pngio.setType #true24
pngio.setAlpha false
pngio.setInterlaced false