move lua state to task