added migrate and avatar uploads