wip
wip
first iteration for multiple instances support
testing multiple instances
id refactoring