fixing printlevels script, adding utils file