Use cfg module for handling config

Change-Id: I28df28ebdfe8614cd05659928f7bf3bd35146956
Fix type (externel -> external)

Change-Id: I39d5a3eeb08194d4cd79aa06b72dca5e2b6f882a