to replace v.1 (which was stupid), however this version doesn't work (yet)...