better low memory behavior