getting applications and emails to work