make user code detection more symmetric with call stack generation