Reduction.stat helper
error handling and logging
compile_proc