expr fix, print cmdline fix, and added allocatedResources