extract events