better default path handling