Fix errors in server implementation so that GET/PUT packages works