moved memory usage request to command line to be more flexible