input_path bug fixed, refactory needed!
Added back named keys