some cleanup for swift example