server has issues if mem usage > 85%...horrible code, TODO FIX