updated permissions module