better scoping, multiple instantiations work on single page