the exhaust didnt get blocked when you had the motor out ???
or an intercooler pipe blocked with a rag or something???
does the car start and idle ok? sounds like something is blocked if it wont rev past 4000rpm and no boost in intake manifold...maybe check to see nothing is blocked up....
just an idea