extracting config and models