add common utils code