rename sw to swapi : smart widget api