converted to node app
port
small changes
small changes