pust server code