more error handling for avatar publication