added error checking to old utils