switch file -> pkg