build automatically before update