if you change meddleware config, then you have to change the integer checks in here .... no? so why do the check?