made server constructor protected