common utility module that shared by both platform and client codes