remove server constructor. update sample