switch to protoclass