intial implementaiton of utility functions. start libos design