bugfix for relative paths