STI for records and rendering txt to domain