tools: add gain control