data-program: use sd as well as address for directory names