changed directory manipulation for LC files