added swift stuff