added motor support for lua