fix check for queuefile