converted the entire thing to a node app