fixed external file sourcing