adding internal flag when needed for raw modules