several changes involving file input