added better error handling for RTA, closing #297