add memory monitor script