apply plugins at end of constructor