add classe info function and api