bug fix - dist script module pattern