finally it is all conneted and working, fixed bugs with require and module.exports