refactor configuration
configuration: add replacements files, refactor configuration
write models to files