cleanup debugging and results to be user configurable