edit server functions to not take fd