now it can be used as nodejs module