add afterInitialization method