added callback after file entry, not fully working