added avatar support (local)