varaint updated to use new library features