gets guard and swat from file