add some functions for Lua to call