"big refactor to make compatible with cocoapods podspec"