update the main module