added insert file and tests