used Edge.js for data connection