add support to configure memory and cpu