rebuild loader so it can be shared by multiple modules