fixed multi mode bug
tests for single & multi mode