Need to use my own fork, because npm module is soo old....
adapted  functions to my fork.