cleanup of layer-checker