made server selection work