contrib: some improvements im REST interface