fixing problems with paths