add email parsing and main