fixed some more bugs and increased memory to 1G per job (getting core dumps).