generate modulefooter and header plugin