improved get filename and number of chunks commands