fixed problem of linking with relative pathes
implemented proper use of remote folders