fix cpu / mem usage