added split handling, loggin (winston)