finally got duc_open() reworked properly