moving regions configuration into source