getting file locations right