relative paths now works and bug in list_directories now fixed
saving