Ok, I think I finally figured it all out. first things first I need to get a different mechanic, because I had him check it out before I started to fix it myself and he said that he checked everything and could not figure out what was going on. to get right to the point, all I needed to do was take my mass air flow sensor off clean it thoroughly with a full can of mass air flow sensor cleaner, reset my air intake tube so it was properly connected with no leaks and I had an issue with my air filter box not sealing properly which was allowing dust to get past the filter and dirty up my mass air flow sensor horribly. my Pathfinder is running like brand new now! and for the record my mechanic is retarded!