update rest plugin, some modification in source types