updated array2table, added callbacks