added more generic read of body parameters