fixed wrapping bugs, etc in addUnit()