various updates of the codes