startu-up and shtdown call back to begin