add storage of lua state in event loop