added a new implementation of delay for registration emails to run async