added threading to check mail every 15 seconds