trying a more flexible way to specify the xmx