s/file/object/ throughout this file too