solve illegal cross module references for wrappers