metainformation and cleanup