small fixes for rest interface