added 2 outfiles per context