A few fixes, user_confirm func and read_with_defaults func