changes to mainly to paths.py to make relative paths