improve build egg command