removing dirty capabilities and hiding some protected methods