refactor boss_files to split out a util method
adding more tests