decode_result and processed_result refactored out to helpers
now a runnable application yay