adding hook for wierd crash on goto