first draft of ios host module refactor