remove legacy code from restapi 1.0