updated script to dynamically include unknown module types