utility functions for local pc