lua support for create functions