updated to be as server