added error checking for invalid server id entries