Cfy 1511 local dependencies

define cli_print locally here, more readable