adding support for using HDSG as a module in another app