minor fixes to utils