added __construct() and addHandlers() private method