server file for client side