fix bug. duck typing for multi apps