added minimal server code