check admin and get module function