fixes for Swift GM. Secure archiving doesnt work yet though, apple need to fix that