cleanup after getting emails working