added realtime classification on save