format target output directory