was not taking into account a config file in the function