common utils for system programming