added more lua functions