improved friendship and location management