added psedudocode for config api