improve gain control and clean-up CSS a bit