shouldn't it be in the end, after events registration?