there are used pistons + new rings and rebored block. i have also resealed the pump last winter, so now it is leak free. engine has very good compression (when warm, it starts up without glowplugs with no problem). but the problem i had before is still there 
could it be the injectors? or i should be looking for the problem somewhere else. the thing that misleads me is the fact that it idles well, and the problem starts only after revving it up a bit
Are all 4 securing bolts present on the pump, in particular the one under the pump head?

Try swapping the injectors around. Break the sequence,ie label 1 3 4 2 and swap a couple, ie 1 & 4, to give 4312. Check true difference by trying to insert into the sequence 134213421342.
No better? Check injectors operation:
Check leakoff flow rates by opening up all the barbs and plugging 'return' line to pump. Running temporary lines to a row of test-tubes is ideal, or I'd use 8 off, 5" stiff clear lines creating vertical manometers.
Check spray and break pressures after an overnight rest; this I personally find, reveals faulty injectors at their worst. Look for variations;D
Nothing showing up? Insert your spare, preserved in aspic, set of injectors
No help? Slacken engine mount/s
compression is the same in all the cylinders. so there will not be "bad cylinder" there... :?Are all 4 securing bolts present on the pump, in particular the one under the pump head?do you mean pump mounting bolts? they are all tightened well (i had that problem 3 years ago and after that i always dounble check mounting bolts
The 4th one at the high pressure end of the pump gets left out a lot and it causes the pump to oscillate in its mount at around the RPM range that you are having issues. But it sounds like you have this covered.
i learned my lesson two years ago 
Checking leak off volumes, eliminates one that may be leaking more than others and so injecting a different quantity. Running the engine at idle and then at the offending rpm could show a dynamic injector issue.
These engines have lots of harmonics, hence the ability to vibrate the ash tray or tool box in the back at different speeds.
it can really give me some info about bad injector 
I guess I assumed since it was bad enough to rebuild that it was misfiring badly in your first post...How bad is it? Is it a misfire or is it just vibration? When you lightened the flywheel and pulley were they neutrally balanced? If not that maybe your entire problem. For example my entire engine is balanced from pulley, crank sprocket all the way to the clutch, PP, and fly wheel to less than 1 gram. But it still has vibrations especially when cold and what you could perceive as a misfire if you didn't know because of all of the lightened stuff I have. Let us know more.
