fix api usage
moved to backend
do not change type if it is already set