removed redirect for errror messages, added stack trace