take resource types config as a flag