add check for config exist