move console content to separate directive