some common utils which can be used as a submodule of iOS project