(1) implement functions in the server (2) change to the partial plass