add unit and unitstack classes