- genclass fixes
- shutdown fn