add euid checking to the helper