converted server methods to new API format