added some methods to lua tools