deploying check_mem as well