bugfixes for paths