minor improvements in Utils class