sleep replaced by log