fixes pre-upgrade bug, not passing file as argument