added check_memory including pnp template