updated server function
added list branch