implement a configuration mechanism with fallback based on nconf module