merge setup & shutdown to constructor & destructor;