implemented the 'only active' switch.