fixed bug for expect output file. it was route to the nonexisting file