add to file api