update init and mercuial