only if in server env should stacktrace be called