introducing deepHeir to support complex structures