add import events function