updated way of storing config

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>