some handy utility functions, saves functions on top of node's default util package