v4 changes, fix various bugs
add v4 distfile