avatar promise handling implemented