introduce parts metadata.
move init code into new file, add section.
fix indentation.
check existence of all variables.
define the rest of the extensions.
use correct direction of separators.