fix for multiple instances