remvoed complex class definition from avatar uploader