add lib/script with chk code