added vm parameter to because app was running out of memory