birkbeck sw-related code