fixed some path related problems