fixed bug when installing the same main package twice
provide post loop statement by closure