refactor - moved config and logs