add server side code and connect the things