1) use named parameters whenever possible
2) use package_instantiate_object and relation_add, although i think these functions have to be moved since, for reasons unbeknownst to me, they are in acs-subsite/tcl/package-procs.tcl and they should probably be in acs-tcl/tcl