added lock support, commnted luacode run