add a max number of devices