some fidling with the code, trying to run it with just 4GB of RAM