fix config_from_object method signiture