add function to read paths