changes due to js REST api changes