update md and pkg