fixed bug with output paths