added logging
added sleep