only allow a block to be passed into the dalli method