ud: added support for compound terms