attached some server functions to gui