new one based on one by Wolfgang Solfrank, but majorly hacked (as it: it didn't have a chance in hell of working, before; didn't even bother copying out argc, for one...)