fix posibly all memory leaks ignore compiled main