persist protected and private methods