add utility functions for os package