Refactoring/chain_run refact/dialyzer