merge mutex calls
small style fix
rename functions id_to_str and ip_to_str