additional error handling of UD unit search function