not working with multiple instances