bug fixing regarding file paths and names