adds unions, modules and options