add classifier rest logic