fixed external file call issue