added a config file to specify the number of protected slots