remove dependency on swift