critical bug fix in eventloop. Djangoapp also fixed