remove extra dashes
add output on failure