use stackTrace in various places