add extremely basic mode handling, client count