added "-d" to the output name
Fixed propagate