make server (-s) specification processing more robust