SWAT library