simplified error stack a bit