added stacktrace for debugging grant