bugfixes for relative pathes