minor fixes for lua scripts; set default lockPoolSize to 1024