improved eventloop fixes #8