converted server methods to new api format