separate WritePkgCode function
removed merge flag for interface code
fixed dce bug