add constraints and more resources