error handling for util.ls