implementing getAll in server handler