fix init by extending from CApplicationComponent