module type newin and function type oldin now supported