adding support for memory and swap checks