write modified source to out folder