implemented config loading