init and sleep