fix not deleting content on error
fix cases where mark did not mark correctly
string could start with / as well
use fix--url instead of add-url