need mutex lock here
More correct perl checks
segfault test added