a collection of util functions