created import function for config and fixed log error in api