added return value for avatar url in messages