refactored social-utils