finished up email stuff