improved .d formatting