new way to guess local path