added better error handling for RTA, closes 297