cleanup primus references