adding better error handling for bus errors