clean up
mostly initializing control signals