get configuration as dict