added server function due to "Internal Server Error" issues in Mountian Lion