better fix for relative paths