add aborting stubs in main modules, and replace them with functions from side modules