set correct memory limits on manual run