split switch and util class
make ElroUtil module
more tests
extracted more methods and test them