various bugfixes and improve config import workflow