fixed problem running under unix