-attempts to improve config saving

Signed-off-by: Artyom Borkowsky <artyom_borkowsky@stylesoft.by>