add lua script support