changed exceptions to print stack