supports for ctx.newFiles