set defaults on prototype