corrected type
added method setConfigPath