conditional repairs for custom modules