refactored to provide some quality profiles