added support for creating multiple instances easily