changed lib nag primary to class