more throw new Error instead of throw {name: , message: } -- for some reason I don't get stack trace in the second case