now supports multiple instances on one page