added classify and lg and pickling