new locking. but maybe buggy. ruby compile OK
new locking. many bugfixes