fix memberof method
remove caching since it causes more problems than it solves