error handling in auto-friendship