working version for event import with additional checks, debug stuff