fixed inter-file linking functions w. CUSTOM_ID