~ small refactoring (use path instead of string)