fix directory where ouput is saved