added env var for RMATE and separated some config files depending on the responsibility