add unit and unitmanager