updating auth to not use prototype and adding a check in command loader so command array is never empty