Check for loctype

i forgot to do some checks, there might be a few pushes like this