tweaked postprocessing
refactored preprocessing methods