reworked resource alloc via cmd line args