add copy from chj-perllib
change license to fit project, use it
do not stop on certain errors