configurable default value implementation. Need code refactore.