defaulting command in the restrictioncheck function