modifications to support the cleancap script
modifications to support the cleancap script